<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>

<div class="header img"></div>
<nav class="navbar navbar-default">
	<div class="container">
		<div class="col-md-4">
			<div class="navbar-header">
				<%-- <a class="navbar-brand" href="#"> <img class="brand" alt="Brand"
				src="${ctx}/images/index/logo.png">
			</a> --%>
			</div>
		</div>
		<div class="col-md-5">
			<ul class="nav navbar-nav">
				<li class="nav_li"><a href="${ctx }/toHome">首页</a></li>
				<li class="nav_li"><a href="${ctx }/tianswcai.html">天生我才</a></li>
				<li class="nav_li"><a href="${ctx }/match_list.html">赛事展示</a></li>
				<li class="nav_li"><a href="${ctx }/user/myhome.html">个人中心</a></li>
			</ul>
		</div>
		<div class="col-md-3">
			<form class="navbar-form navbar-left">
				<div class="form-group">
					<c:if test="${empty(user)}">
						<div class="btn-group">
							<a href="${ctx }/login.html" class="btn btn-info"> 登录</a> <a
								href="${ctx }/register.html" class="btn btn-info">注册</a>
						</div>
					</c:if>
					<c:if test="${!empty(user) }">
						<div class="btn-group">
							您好，<a href="${ctx }/user/myzoom.html">${user.user_name}</a> <a
								href="${ctx }/user/api_loginout">退出</a>
						</div>
					</c:if>
				</div>
			</form>
		</div>
	</div>
</nav>
